<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="./js/jquery.js"></script>
    <script src="./js/axios.js"></script>
  </head>
  <body>
    <button>发送请求</button>
    <script>
      $("button").click(async function () {
        let res = await axios.post("http://127.0.0.1:3001/login", {
          uname: "zhangsan",
          pwd: "123456",
        });
        let ret = await axios.get(
          "http://127.0.0.1:3001/orderlist?uid=" + res.data.uid

        );
        console.log(ret.data.list);
      });
    </script>
  </body>
</html>
